int main(){
    int *a;
    a = (int*)malloc(sizeof(int));
    *a = 1;
    *(a + 1) = 2;
    a[2] = 3;
    printf("%d %d %d\n", a[0], a[1], a[2]);
    free(a);
    return 0;
}